#!/usr/bin/env python
import gtk

class confirmDialog(gtk.MessageDialog):

   def __init__(self,msg,parent):
      gtk.MessageDialog.__init__(self,parent,gtk.DIALOG_DESTROY_WITH_PARENT,
                                 gtk.MESSAGE_QUESTION,gtk.BUTTONS_YES_NO,
                                 msg);


      def sig(widget,res=None): widget.destroy();
      self.connect('close',sig);
